#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
using namespace std;

class Solution{
    public:
    bool ans1(int x){
        if(x < 0){
            return false;
        }
        long num1 = x, num2 = 0;
        while(num1 > 0){
            num2 = num2 * 10 + num1 % 10;
            num1 = num1 / 10;
        }
        if(x == num2){
            return true;
        }else{
            return false;
        }
    }
};

void test1(){
    Solution s;
    int x = 121;

    bool ret = s.ans1(x);
    cout << ret << endl;
}

void test2(){
    Solution s;
    int x = 10;

    bool ret = s.ans1(x);
    cout << ret << endl;
}

int main(void){
    test1();
    test2();

    return 0;
}